package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Controller
public class TestController {

    @RequestMapping("/index")
    public String index(Model model){
        model.addAttribute("name", "佘家辉");
        model.addAttribute("desc", "上课不爱玩儿手机");
        return "index";
    }
}
